Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 7bafa411b6bc00f098a2131a3ffcba55cb026cbe


Parents : 0df55bd
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-06-06T20:58:26-05:00

fix(tests): add hexhash to mock instance in telephone stub and adjust import statements for clarity

Changes

2 files changed, 3 insertions(+), 2 deletions(-)


Diff

diff --git a/tests/backend/conftest.py b/tests/backend/conftest.py
index 58aa0246..405116cb 100644
--- a/tests/backend/conftest.py
+++ b/tests/backend/conftest.py
@@ -105,6 +105,7 @@ def stub_lxst_telephone_unless_real(request):
mock_instance.busy = False
mock_instance.call_status = 3
mock_instance.active_call = None
+ mock_instance.destination.hexhash = "test_telephone_hexhash"
with patch(
"meshchatx.src.backend.telephone_manager.Telephone",
return_value=mock_instance,

diff --git a/tests/backend/test_lxst_integration.py b/tests/backend/test_lxst_integration.py
index df34af0e..1306d318 100644
--- a/tests/backend/test_lxst_integration.py
+++ b/tests/backend/test_lxst_integration.py
@@ -14,9 +14,9 @@ import pytest
pytest.importorskip("LXST")
pytestmark = pytest.mark.lxst_real
-from LXST.Primitives import Telephony as LXSTTelephony
+from LXST.Primitives import Telephony as LXSTTelephony # noqa: E402
-from meshchatx.src.backend.telephone_manager import TelephoneManager
+from meshchatx.src.backend.telephone_manager import TelephoneManager # noqa: E402
class _DummyThread:


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────